package com.robusta.spreadsheet.model;

import com.robusta.spreadsheet.model.exception.WorkbookException;

/**
 * Abstraction that represents a row of the work sheet.
 * @author sudhir ravindramohan sudhirbits@gmail.com
 * @since 1.0
 */
public interface Row extends Iterable<Cell>, OwnerIdentifiable<Worksheet> {
    Cell getCellAt(int position) throws WorkbookException;
    Cell getCellFor(HeaderCell headerCell) throws WorkbookException;
    Cell getCellByHeaderText(String headerText) throws WorkbookException;
    int rowIndex();
}
